<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta name="Generator" content="68ECSHOP v4_2">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <title>红包 - 淘嘟嘟网</title>
    <link rel="stylesheet" type="text/css" href="__CSS__/home/68ecshop_common.css"/>
    <link rel="stylesheet" type="text/css" href="__CSS__/home/user.css"/>
    <script src="__JS__/jquery-1.8.3.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__JS__/home/common.min.js" type="text/javascript" charset="utf-8"></script>
    <!--			layer-->
    <script type="text/javascript" src="__JS__/jquery.form.js"></script>
    <script type="text/javascript" src="__JS__/tips/toastr.min.js"></script>
    <script type="text/javascript" src="__JS__/layer/layer.js"></script>
    <script type="text/javascript" src="__JS__/jquery.layer.js"></script>
    <!--			layer-->
    <script src="__JS__/taodudu.lib.js" type="text/javascript" charset="utf-8"></script>
</head>
<style type="text/css">
    #coupon-list {
        width: 100%;
    }
    .coupon-box {
        float: left;
        padding: 3px;
        font-family: tahoma,arial,'Hiragino Sans GB',SimSun,'\5b8b\4f53',sans-serif;
        font-weight: lighter;
    }
    .coupon-box .coupon {
        background-image: url(__IMG__/home/T1dYavFxJgXXXFeGHE-365-456.png);
        background-position: -123px 0;
        width: 241px;
        height: 258px;
        position: relative;
    }
    .cp-bg-color-1 {
        background-color: #81CCCD;
    }
    .coupon-box .coupon-upper>a {
        display: block;
        float: left;
        position: absolute;
        color: #fff;
    }
    .coupon-box .amount {
        top: 20px;
        left: 9px;
        font-size: 40px;
        font-weight: 400;
    }
    .coupon-box .price-symbol {
        font-size: 20px;
        font-weight: 400;
        font-family: "Microsoft Yahei",Simsun,serif;
        vertical-align: 2px;
    }
    .coupon-box .scope {
        top: 30px;
        right: 20px;
        font-weight: 700;
    }
    .coupon-box .lb-shop-name {
        top: 120px;
        left: 9px;
    }
    .coupon-box .shop-name {
        top: 120px;
        left: 74px;
        color: #fff;
        text-decoration: none;
    }
    .coupon-box .lb-use-cond {
        top: 80px;
        left: 9px;
    }
    .coupon-box .use-cond {
        top: 80px;
        left: 74px;
    }
    .coupon-box .lb-valid-date {
        top: 100px;
        left: 9px;
    }
    .coupon-box .valid-date {
        top: 100px;
        left: 74px;
    }
    .coupon-box .coupon-lower {
        margin-top: 13px;
        width: 100%;
        margin-left: 5px;
        color: #9F9F9F;
    }
    .coupon-box .coupon.expiring:after {
        background-image: url(__IMG__/home/T1dYavFxJgXXXFeGHE-365-456.png);
        background-position: 0 -13px;
        width: 61px;
        height: 57px;
        position: absolute;
        bottom: 1px;
        right: 1px;
        content: '';
    }
    .coupon-box .coupon-lower>div {
        float: left;
        margin-left: 3px;
        text-align: center;
    }
    .coupon-box .coupon-lower>div>a {
        font-size: 12px;
    }
    .coupon-box .coupon-lower>div img {
        width: 70px;
        height: 70px;
    }
    .coupon-box .coupon-box-bottom {
        height: 12px;
        width: 92px;
        margin: 15px auto;
    }
    #search-box:after, .bg {
        background-image: url(__IMG__/home/T1dYavFxJgXXXFeGHE-365-456.png);
    }
    .bg {
        background-repeat: no-repeat;
        display: block;
    }
    .coupon-box .commodity, .coupon-box .shop, .coupon-box .trash {
        width: 14px;
        height: 12px;
        cursor: pointer;
    }
    .coupon-box .shop {
        background-position: 0 0;
    }
    .coupon-box .coupon-box-bottom>a {
        float: left;
    }
    .coupon-box .coupon-box-bottom>a.line {
        border-left: solid 1px #F3EFEE;
        display: block;
        margin: 0 12px;
        height: 12px;
    }
    .coupon-box .trash {
        background-position: -60px 0;
    }
    .coupon-box .coupon-upper {
        position: relative;
        font-size: 13px;
        width: 100%;
        height: 148px;
        color: #fff;
    }
</style>
<body>

<include file="Public/head_a"/>
<include file="Public/head_b"/>
<include file="Public/head_c"/>


<div class="margin-w1210 clearfix">
    <!--S用户中心公共左边-->
    <include file="Public/user_left"/>
    <!--E用户中心公共左边-->
    <div class="user-right">

        <div class="box" style="width: 989px;margin-left: 10px">
            <div class="tabmenu">
                <ul class="tab">
                    <li class="active" style="width: 950px;text-align: left;">
                        <a href="#">平台红包</a>
                    </li>
                </ul>
            </div>
            <div id="coupon-list" class="clearfix" data-spm="coupon-list">
                <foreach name="voucher" item="v">
                    <if condition="($v['voucher_store_id'] eq 0)">
                        <div class="coupon-box">
                            <div class="coupon cp-bg-color-1 expiring">
                                <div class="coupon-upper">
                                    <a class="amount"><span class="price-symbol">￥</span>{$v['voucher_price']}</a>
<!--                                    <a class="scope">{$v['voucher_desc']}</a>-->
                                    <a class="lb-shop-name">发行店铺:</a>
                                    <a class="shop-name" href="{:HOME_URL}/Supplier/{$v['voucher_store_id']}" target="_blank" title="{$v['voucher_storename']}">{$v['voucher_storename']}</a>
                                    <a class="lb-use-cond">使用条件:</a>
                                    <a class="use-cond">满{$v['voucher_limit']}</a>
                                    <a class="lb-valid-date">有效时间:</a>
                                    <a class="valid-date">{$v['voucher_start_date']|date="Y-m-d H:i:s",###}&nbsp;至&nbsp;{$v['voucher_end_date']|date="Y-m-d H:i:s",###}</a>
                                </div>
                                <div class="coupon-lower">
                                    <foreach name="goods" item="vo">
                                        <div class="sample">
                                            <a href="{:HOME_URL}/Goods/{$vo['goods_id']}" target="_blank"><img src="{$vo['goods_thumb']}" title="{$vo['goods_title']}"></a>
                                            <br>
                                            <a>{$vo['goods_price']}</a>
                                        </div>
                                    </foreach>
                                </div>
                            </div>
                            <div class="coupon-box-bottom clearfix">
                                <a class="line"></a>
                                <a class="bg trash J_Delete" cid="{$v['voucher_id']}" title="删除红包"></a>
                            </div>
                        </div>
                    <else />
                        <a href="{:U('Coupons/index')}" style="padding-left: 50px;">您还没有领取平台红包，点击这里来领取吧</a>
                    </if>
                </foreach>
            </div>
        </div>

        <div class="box" style="width: 989px;margin-left: 10px">
            <div class="tabmenu">
                <ul class="tab">
                    <li class="active" style="width: 950px;text-align: left;">
                        <a href="#">店铺红包</a>
                    </li>
                </ul>
            </div>
            <div id="coupon-list" class="clearfix" data-spm="coupon-list">
                <foreach name="voucher" item="v">
                    <if condition="($v['voucher_store_id'] neq 0)">
                        <div class="coupon-box">
                            <div class="coupon cp-bg-color-1 expiring">
                                <div class="coupon-upper">
                                    <a class="amount"><span class="price-symbol">￥</span>{$v['voucher_price']}</a>
                                    <a class="scope">{$v['voucher_desc']}</a>
                                    <a class="lb-shop-name">发行店铺:</a>
                                    <a class="shop-name" href="{:HOME_URL}/Supplier/{$v['voucher_store_id']}" target="_blank" title="{$v['voucher_storename']}">{$v['voucher_storename']}</a>
                                    <a class="lb-use-cond">使用条件:</a>
                                    <a class="use-cond">满{$v['voucher_limit']}</a>
                                    <a class="lb-valid-date">有效时间:</a>
                                    <a class="valid-date">{$v['voucher_start_date']|date="Y-m-d H:i:s",###}&nbsp;至&nbsp;{$v['voucher_end_date']|date="Y-m-d H:i:s",###}</a>
                                </div>
                                <div class="coupon-lower">
                                    <foreach name="goods" item="vo">
                                        <div class="sample">
                                            <a href="{:HOME_URL}/Goods/{$vo['goods_id']}" target="_blank"><img src="{$vo['goods_thumb']}" title="{$vo['goods_title']}"></a>
                                            <br>
                                            <a>{$vo['goods_price']}</a>
                                        </div>
                                    </foreach>
                                </div>
                            </div>
                            <div class="coupon-box-bottom clearfix">
                                <a class="bg shop" title="进入店铺" href="{:HOME_URL}/Supplier/{$v['voucher_store_id']}" target="_blank"></a>
                                <a class="line"></a>
                                <a class="bg trash J_Delete" cid="{$v['voucher_id']}" title="删除红包"></a>
                            </div>
                        </div>
                    <else />
                        <a href="{:U('Coupons/index')}" style="padding-left: 50px;">您还没有领取店铺红包，点击这里来领取吧</a>
                    </if>
                </foreach>
            </div>
        </div>
    </div>
    <script>
        $(".J_Delete").click(function(){
            cid = $(this).attr('cid');
            layer.msg('确定要回收该购物券', {
                time: 20000, //20s后自动关闭
                btn: ['不要了', '留着吧']
            },function(){
                    data = {cid:cid};
                    p = Aajax('http://www.taodudu.com/Voucher/del',data);
                    if(p){
                        layer.msg('该红包已被回收');
                        history.go(0);
                    }else{
                        layer.msg('出错了请稍后重试');
                    }
            }


            );

        });
    </script>
</div>


<!--S公共尾部-->
<include file="Public/bootom"/>
<!--E公共尾部-->
</body>
</html>